/*
*  Copyright 2019-2023 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.system.domain;

import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.bean.copier.CopyOptions;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;

/**
* @description /
* @author shitou
* @date 2024-05-29
**/
@Data
@TableName("userexercisesetlog")
public class Userexercisesetlog implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "type")
    private Integer type;

    @ApiModelProperty(value = "teachid")
    private Long teachid;

    @ApiModelProperty(value = "teachchapterid")
    private Long teachchapterid;

    @ApiModelProperty(value = "teachsubsectionid")
    private Long teachsubsectionid;

    @ApiModelProperty(value = "subsectionexercisesetid")
    private Long subsectionexercisesetid;

    @ApiModelProperty(value = "courseid")
    private Long courseid;

    @ApiModelProperty(value = "exercisesetid")
    private Long exercisesetid;

    @ApiModelProperty(value = "userid")
    private Long userid;

    @ApiModelProperty(value = "isComplete")
    private String iscomplete;

    @ApiModelProperty(value = "createtime")
    private String createtime;

    //单选题分数
    @TableField(exist = false)
    private Integer singleScore;

    //单选数量
    @TableField(exist = false)
    private Integer singleNum;

    //单选正确

    //多选分数
    @TableField(exist = false)
    private Integer multipleScore;

    //多选数量
    @TableField(exist = false)
    private Integer multipleNum;

    //多选正确

    //判断分数
    @TableField(exist = false)
    private Integer judgeScore;

    //判断数量
    @TableField(exist = false)
    private Integer judgeNum;

    //判断正确

    //填空分数
    @TableField(exist = false)
    private Integer completionScore;


    //填空数量
    @TableField(exist = false)
    private Integer completionNum;

    //填空正确



    //总分数
    @TableField(exist = false)
    private Integer AllScore;


    @TableField(exist = false)
    private Integer shortScore;

    @TableField(exist = false)
    private Integer shortNum;
    public void copy(Userexercisesetlog source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
